import Vue from 'vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import store from './store/index'
import App from "./app.vue"
import routerConfig from "./router/router.config.js"
global.fn = require("./global.js");

console.log(global);
console.log(store);

Vue.use(VueRouter)
Vue.use(VueResource)

const router = new VueRouter({
  //mode: 'history',
  base: __dirname,
  routes:routerConfig
})
//routerConfig(router);

new Vue({
  router,
  store,
  components:{App}
}).$mount("#app")
